struct Solution {}

fn main() {}

impl Solution {
    pub fn detect_capital_use(word: String) -> bool {
        let lower = word.to_lowercase();
        let upper = word.to_uppercase();
        let camel: String = upper[0..1].to_string() + &lower[1..].to_string();
        word == lower || word == upper || word == camel
    }
}